GVariant *item;
gint64 start, now;
- start = GDK_PROFILER_CURRENT_TIME;
+ start = g_get_monotonic_time ();
if (!chooser->data)
{
add_emoji (chooser->box, FALSE, item, 0, chooser);
g_variant_unref (item);
- now = GDK_PROFILER_CURRENT_TIME;
- if (now > start + 2000000) /* 2 ms */
+ now = g_get_monotonic_time ();
+ if (now > start + 200) /* 2 ms */
{
- gdk_profiler_add_mark (start, (now - start), "emojichooser", "populate");
+ gdk_profiler_add_mark (start * 1000, (now - start) * 1000, "emojichooser", "populate");
return G_SOURCE_CONTINUE;
}
}